package hku.cs.eclunuo.marker;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.core.resources.IMarker;
import org.eclipse.ui.IMarkerResolution;
import org.eclipse.ui.IMarkerResolutionGenerator2;

public class SusMarkerResolution implements IMarkerResolutionGenerator2 {

	@Override
	public IMarkerResolution[] getResolutions(IMarker marker) {
		List resolutions = new ArrayList();
		resolutions.add(new ChangeCodeResolution());
		return (IMarkerResolution[]) resolutions
				.toArray(new IMarkerResolution[resolutions.size()]);
	}

	@Override
	public boolean hasResolutions(IMarker marker) {
		return true;
	}

}
